<script setup lang="ts">
import { reLaunch, getCurrentInstance } from '@tarojs/taro';
import { Check as AppNutIconCheck } from '@nutui/icons-vue-taro';
/**
 * @description 当前路由信息
 */
const params = getCurrentInstance().router?.params as unknown as {
  timeEnd: string;
};
</script>

<template>
  <view class="drill-submit-success app-page--1">
    <scroll-view class="app-page__wrapper" :scroll-y="true" :lower-threshold="100">
      <view class="drill-submit-success__header-wrapper">
        <app-nut-icon-check class="drill-submit-success__icon" />
      </view>
      <view v-if="params.timeEnd">演练已到结束时间</view>
      <view v-else>演练完成!</view>
    </scroll-view>
    <view class="drill-submit-success__footer">
      <nut-button
        block
        shape="round"
        type="info"
        @click="
          reLaunch({
            url: '/pages/emergency-manage/drill/list/index',
          })
        "
      >
        返回
      </nut-button>
    </view>
  </view>
</template>

<style lang="scss">
@import './index.scss';
</style>
